package com.wind.taobao.api.jianghu.rest
{
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.jianghu.picture.uploadPicture Response
	 * @author fxy
	 *
	 */
	public class JianghuPictureUploadPictureResponse extends TaobaoJianghuResponse
	{
		public var picture_id:String;
		public var album_id:String;

		public function JianghuPictureUploadPictureResponse(response:TaobaoResponse=null)
		{
			super(response);
			initResults();
		}

		private function initResults():void
		{
			if (body != null && this.isSuccess)
			{
				if (this.format == "xml")
				{
					//暂未实现
				}
				else
				{
					if (this.isSubSuccess)
					{
						if (body.hasOwnProperty(["picture_uploadPicture_response"]) && body.hasOwnProperty("upload_result"))
						{
							picture_id=body["picture_uploadPicture_response"]["upload_result"]["picture_id"];
							album_id=body["picture_uploadPicture_response"]["upload_result"]["album_id"];
						}

					}
					else
					{

					}
				}
			}
		}

	}
}